package com.bdqn.service;

import com.bdqn.dao.UserDao;
import com.bdqn.pojo.User;

/**
 * 用户模块业务层实现
 */
public class UserServiceImpl implements UserService {
    //实例化所依赖的UserDao对象
    private UserDao dao;

    /**
     * 保存用户信息
     * @param user
     */
    @Override
    public void save(User user) {
        //调用UserDao的方法保存用户信息
        dao.save(user);
    }


    public void setUserDao(UserDao userDao){
        this.dao=userDao;
    }

}
